package top.forgirl.mapper;

import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import top.forgirl.domain.Login;

@Repository
public interface LoginMapper {

    /**
     * 查询一个登录用户信息
     * @param login
     * @return
     */
    Login selectOne(Login login);

    int insert(Login login);

    Login checkUniquePrincipal(String principal);

    int update(Login login);

    int delete(String relation);
}
